package com.exercise.demo.delegate.staticDelegate;

import com.exercise.demo.delegate.SmsService;

/**
 * @author dale
 * @Date 2021-05-18 11:02
 **/
public class SmsProxy implements SmsService {
    private final SmsService smsService;
    public SmsProxy(SmsService smsService){
        this.smsService=smsService;
    }
    @Override
    public String send(String message) {
        System.out.println("before-");
        smsService.send(message);
        System.out.println("after-");
        return null;
    }
}
